export default function myPlugin() {
    return {
      name: 'transform-gltf',
      configureServer(server) {
          server.middlewares.use((req, res, next) => {
              if(req.url.search(/\.gltf$/)>=0){
                // console.log(req.url,res);
                // res.end('1');
              }
              next();
          })
      },
      closeBundle(...arg) {
        console.log(111,arg);
      },
    }
  }